package com.springcloud.alibaba.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.springcloud.configclient.commons.entities.CommonResult;

public class BlockHandler {

    public static CommonResult  blockException1(BlockException blockException){
        return new CommonResult(4444,"自定义阻塞异常1"+blockException.getMessage());
    }

    public static CommonResult  blockException2(BlockException blockException){
        return new CommonResult(4444,"自定义阻塞异常2"+blockException.getMessage());
    }

}
